

#import <UIKit/UIKit.h>
@class PWBannerView;

NS_ASSUME_NONNULL_BEGIN

@protocol PWBannerViewDelegate <NSObject>
@optional
- (void)bannerView:(PWBannerView *)bannerView didSelectAtIndex:(NSInteger)idx;
- (void)bannerView:(PWBannerView *)bannerView nextPageAtIndex:(NSInteger)idx;
@end

@interface PWBannerView : UIView

@property (nonatomic, weak, nullable) id<PWBannerViewDelegate>delegate;
@property (nonatomic, strong) NSArray<NSString *> *imageNames;
@property (nonatomic, strong) NSArray<NSString *> *imageURLs;
@property (nonatomic, strong) UIImage *placeholderImage;
@property (nonatomic, assign, getter=isAutoScroll) BOOL autoScroll; //default is YES
@property (nonatomic, assign) NSTimeInterval timerInterval;         //default is 5

@end

NS_ASSUME_NONNULL_END